<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<div class="form-horizontal" role="form">

  <!-- job name -->
  <div class="form-group">
    <label for="jobName" class="col-sm-2 control-label">Job name :</label>
    <div class="col-xs-4">
      <input type="text" class="form-control" id="jobName" name="jobName" placeholder="job name" value="${results.jobName}">
    </div>
    <div class="col-xs-4">
      The jobname is...
    </div>
  </div>
  
  <!-- description -->
  <div class="form-group">
    <label for="description" class="col-sm-2 control-label">Description :</label>
    <div class="col-xs-4">
      <textarea type="text" class="form-control" id="description" name="description" placeholder="description">${results.description}</textarea>
    </div>
    <div class="col-xs-4">
      The description is...
    </div>
  </div>

  <!-- Host directory -->
  <div class="form-group">
    <label for="hostDirectory" class="col-sm-2 control-label">Host directory :</label>
    <div class="col-xs-4">
      <input type="text" class="form-control" id="hostDirectory" name="hostDirectory" placeholder="\\server\shared" value="${results.hostDirectory}">
    </div>
    <div class="col-xs-4">
      The hostDirectory is...
    </div>
  </div>

  
  
  <!-- size to copy -->
  <div class="form-group">
    <label for="byteToCopySize" class="col-sm-2 control-label">Total size to copy :</label>
    <div class="col-xs-2">
      <input type="number" class="form-control" id="byteToCopySize" name="byteToCopySize" placeholder="1" value="${results.byteToCopySize}">
    </div>
    <div class="col-xs-2">
    
      <select name="byteToCopyUnit" id="byteToCopyUnit" class="form-control">
		  <option value="-1" disabled="disabled">--- SELECT ---</option>
		  <c:forEach var="unit" items="${units}" >
		    <c:choose>
				<c:when test="${results.byteToCopyUnit.value==unit.value}"> <option value="${unit}" selected>${unit}</option> </c:when>
				<c:otherwise><option value="${unit}">${unit}</option></c:otherwise>
			</c:choose>
		  </c:forEach>
	  </select>
	  
    </div>
    <div class="col-xs-4">
      The total size is...
    </div>
  </div>
  
  <!-- keepTestFiles -->
	<div class="form-group">
		<div class="col-sm-offset-2 col-xs-4">
			<div class="checkbox">
				<label>
				<form:checkbox path="results.keepTestFiles" /> Keep test files
				</label>
			</div>
		</div>
		<div class="col-xs-4">The test files are...</div>
	</div>	
  
</div>